<include file="Public:pagerForm" />
<tagLib name="html" />
<!-- 主页面开始 -->
    <SCRIPT LANGUAGE="JavaScript">
        <!--
        function listColumn(id){
            window.location = '__URL__/index/column_id/'+id;
        }
        function selectColumn(){
            var result= PopModalWindow('__APP__/Column/treeSelect/',268,365);
            if(typeof(result) == "undefined") return;
            $('columnName').value=result[0][0];
            $('column_id').value=result[0][1];
        }
  
        //-->
    	function addcart(strSection){
				var i;
				var ids='';
				var	colInputs = document.getElementById(strSection).getElementsByTagName("input");
				for	(i=1; i < colInputs.length; i++)
				{
					//colInputs[i].checked=colInputs[0].checked;
					if(colInputs[i].checked==true){
						//alert(colInputs[i].value);
						if(ids==''){
							ids=colInputs[i].value;
						}else {
							ids=ids+'_'+colInputs[i].value;
						}
					}
				}
				//alert(ids);
				//下面使用thinkajax
				//ajax提交待后台最后做先使用window.open 替代
				if(ids!=''){
					window.open('__URL__/add_cart/ids/'+ids);
				}else{
					alert('请先勾选要添加操作的产品');
				}
		}
		
		function finanical_check(id){
			window.location.href='__URL__/finanical_check/id/'+id;
		}
		function market_check(id){
			window.location.href='__URL__/market_check/id/'+id;
		}
		function purchasein(id){
			window.location.href='__APP__/Admin/Stock/purchase/id/'+id;
		}
    </script>
    <!-- 主体内容  -->
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
			<li><a class="add" href="__URL__/create" target="dialog" external="true" width="1150"  height="350" mask="true"><span>新增</span></a></li>
		</ul>
		</div>
	
	<!-- 列表显示区域  -->
	<div class="grid">
<html:list id="checkList" actWidth="300" openWh="800-900,700-600,500-300" style="table" name="action" checkbox="true" action="true" datasource="list" show="id:序号|80,categroy:采购类别|80,title:采购标题|80,number:采购单编号|80,department:申请部门|80,applicant:申请人|80,createtime|toDate='y-m-d H#i':申请日期|80,market_check|get_purchase_status:主管审批|80,financial_check|get_purchase_status:财务审批|80" actionlist="market_check:主管审核:id,financial_check:财务审核:id,purchasein:采购单入库:id" /> 
	</div>	
	<!--  分页显示区域 -->
	<div class="panelBar">
		<div class="pagination">{$page}</div>
	</div>
	<!-- 列表显示区域结束 -->
    <!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->